package nix.demo3.domain;

import java.util.List;

public class PageBean<T> {

	// 当前页
	private int pc;
	// 总页数
	// private int tp;
	// 总记录数
	private int tr;
	// 每页数
	private int ps;
	// 当前页记录
	private List<T> beanList;
	// Url后的条件
	private String url;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getPc() {
		return pc;
	}

	public void setPc(int pc) {
		this.pc = pc;
	}

	public int getTp() {
		return tr % ps == 0 ? tr / ps : tr / ps + 1;
	}

	public int getTr() {
		return tr;
	}

	public void setTr(int tr) {
		this.tr = tr;
	}

	public int getPs() {
		return ps;
	}

	public void setPs(int ps) {
		this.ps = ps;
	}

	public List<T> getBeanList() {
		return beanList;
	}

	public void setBeanList(List<T> beanList) {
		this.beanList = beanList;
	}
}
